<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <!-- <h1>{{article.title}}</h1>
  <p>{{article.content}}</p> -->
  <button onclick="add()">新建文章</button>
  <ul>
    {% for item in articles %}
    <li><a href="{% url 'blog:article_page' item.id %}">{{item.title}}</a></li>
    {% endfor %}
  </ul>
  <script>
    function add() {
      window.location.href = '/blog/edit/0';
    }
  </script>
</body>
</html>